<?php

$cars = array("张三","李四","王五");
echo $cars[2];
$cars[1]="东方";
echo "<pre>";
print_r($cars);

echo count($cars)."<br/>";
foreach ($cars as $value) {
    echo $value ."<br/>";
}


$len = count($cars);
for($i = 0;$i < $len; $i++){
    echo $cars[$i];
}

$message = array(
      "pic" => '<img src="images/3.jpg" alt="" />',
      "name" => "avatar",
      "content" =>  '天天好心情11111    <span> (来自火星"女侠"的留言)</span>',
      "sex" => 'male'
  );
  foreach ($message as $key => $value){
      echo  $key."=>". $value. "<br/>"
  ;} 

 
?>

